package com.cq.hd.product.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 活动表
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_active")
@ApiModel(value = "TbActivePo对象", description = "活动表")
public class TbActivePo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商家id")
    @TableField("business_id")
    private Long businessId;

    @ApiModelProperty(value = "活动编号")
    @TableField("active_no")
    private String activeNo;

    @ApiModelProperty(value = "活动类型(1-普通活动，2-报名活动，3-外部活动)")
    @TableField("active_type")
    private Integer activeType;

    @ApiModelProperty(value = "活动标题")
    @TableField("active_title")
    private String activeTitle;

    @ApiModelProperty(value = "活动图片")
    @TableField("active_img")
    private String activeImg;

    @ApiModelProperty(value = "活动内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "活动价格")
    @TableField("active_price")
    private BigDecimal activePrice;

    @ApiModelProperty(value = "划线价格")
    @TableField("origin_price")
    private BigDecimal originPrice;

    @ApiModelProperty(value = "活动总库存，如果是报名活动的固定人数，就是固定报名人数，如果是报名活动阶梯人数，则是最大阶梯人数")
    @TableField("total_stock")
    private Integer totalStock;

    @ApiModelProperty(value = "活动剩余库存")
    @TableField("remain_stock")
    private Integer remainStock;

    @ApiModelProperty(value = "多件多折状态(1-关闭，2-开启)")
    @TableField("discount_state")
    private Integer discountState;

    @ApiModelProperty(value = "活动开始时间")
    @TableField("start_time")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "活动结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "活动有效开始时间")
    @TableField("valid_start_time")
    private LocalDateTime validStartTime;

    @ApiModelProperty(value = "活动有效结束时间")
    @TableField("valid_end_time")
    private LocalDateTime validEndTime;

    @ApiModelProperty(value = "限购数量")
    @TableField("limit_buy_num")
    private Integer limitBuyNum;

    @ApiModelProperty(value = "省份id")
    @TableField("province_id")
    private Integer provinceId;

    @ApiModelProperty(value = "省份名称")
    @TableField("province_name")
    private String provinceName;

    @ApiModelProperty(value = "市id")
    @TableField("city_id")
    private Integer cityId;

    @ApiModelProperty(value = "市名称")
    @TableField("city_name")
    private String cityName;

    @ApiModelProperty(value = "区县id")
    @TableField("county_id")
    private Integer countyId;

    @ApiModelProperty(value = "区县名称")
    @TableField("county_name")
    private String countyName;

    @ApiModelProperty(value = "活动详细地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "活动状态（1-未发布，2-未开始，3-进行中，4-已结束）")
    @TableField("active_state")
    private Integer activeState;

    @ApiModelProperty(value = "补贴类型(0-未设置,1-自动按比例分摊,2-手动设置)")
    @TableField("subsidy_state")
    private Integer subsidyState;

    @ApiModelProperty(value = "是否是阶梯价格(1-否，2-是)")
    @TableField("step_price_state")
    private Integer stepPriceState;

    @ApiModelProperty(value = "活动限制的报名人数")
    @TableField("enroll_num")
    private Integer enrollNum;

    @ApiModelProperty(value = "未满员是否自动退款(报名活动):1-是，2-否")
    @TableField("no_full_auto_refund_state")
    private Integer noFullAutoRefundState;

    @ApiModelProperty(value = "报名次数限制(同个用户最多可报名几次)")
    @TableField("limit_enroll_num")
    private Integer limitEnrollNum;

    @ApiModelProperty(value = "核销方式(1-线上核销，2-线下核销)")
    @TableField("verify_method")
    private Integer verifyMethod;

    @ApiModelProperty(value = "活动联系电话")
    @TableField("active_mobile")
    private String activeMobile;

    @ApiModelProperty(value = "活动客服微信号")
    @TableField("active_wechat")
    private String activeWechat;

    @ApiModelProperty(value = "活动链接")
    @TableField("active_url")
    private String activeUrl;

    @ApiModelProperty(value = "分销开启状态(1-关闭，2-开启)")
    @TableField("agent_state")
    private Integer agentState;

    @ApiModelProperty(value = "分销佣金金额")
    @TableField("commission_amt")
    private BigDecimal commissionAmt;

    @ApiModelProperty(value = "分销佣金比例")
    @TableField("commission_rate")
    private BigDecimal commissionRate;

    @ApiModelProperty(value = "默认佣金类型：0-无，1-佣金，2-佣金比例")
    @TableField("default_commission_type")
    private Integer defaultCommissionType;

    @ApiModelProperty(value = "其他权益")
    @TableField("other_equity")
    private String otherEquity;

    @ApiModelProperty(value = "是否是所有经纪人可推广：1-是，2-否")
    @TableField("agent_num_state")
    private Integer agentNumState;

    @ApiModelProperty(value = "新人首单红包金额")
    @TableField("first_red_packet_amt")
    private BigDecimal firstRedPacketAmt;

    @ApiModelProperty(value = "活动发布时间")
    @TableField("release_time")
    private LocalDateTime releaseTime;

    @ApiModelProperty(value = "销量")
    @TableField("sale_num")
    private Integer saleNum;

    @ApiModelProperty(value = "关联的商户id（活动商品补贴关联/活动商品关联中的商户id和多商户通用券的商户id，主要用来判断某商户关联的活动数据）")
    @TableField("relation_merchant_ids")
    private String relationMerchantIds;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "删除状态:0-正常，1-已删除")
    @TableField("del_state")
    private Integer delState;

    @ApiModelProperty(value = "核销方式（只对报名活动有效）：0-系统，1-票付通")
    @TableField("verify_type")
    private Integer verifyType;

    @ApiModelProperty(value = "票付通产品ID")
    @TableField("pft_product")
    private String pftProduct;

    @ApiModelProperty(value = "票付通门票ID")
    @TableField("pft_ticket")
    private String pftTicket;

    @ApiModelProperty(value = "票付通供应商ID")
    @TableField("pft_supplier")
    private String pftSupplier;

    @ApiModelProperty(value = "是否是零元购活动（1-不是，2-是）")
    @TableField("zero_state")
    private Integer zeroState;

    @ApiModelProperty(value = "开启报名（0-不开启 1-开启）")
    private Integer enrollEnable;

    @ApiModelProperty(value = "到期未核销是否能退款（0-不能 1-能）")
    private Integer refundableExpiredUnused;

    @ApiModelProperty(value = "隐藏链接（0-不隐藏 1-隐藏）")
    private Integer hideLink;

    @ApiModelProperty(value = "是否需要签到（0-否 1-是）")
    private Integer signInRequired;

    @ApiModelProperty(value = "签到费用")
    private BigDecimal signInFee;

    @ApiModelProperty(value = "是否需要审核（0-否 1-是）")
    private Integer auditRequired;

    @ApiModelProperty(value = "过期自动退款：0：关闭 1-开启")
    private Integer autoRefundEnabled;

    @ApiModelProperty(value = "GROUP_BUY(拼团)")
    private String promotionType;

    @ApiModelProperty(value = "奖励方式：1-佣金 3-积分")
    private Integer rewardType;

    @ApiModelProperty(value = "奖励积分")
    private BigDecimal rewardPoints;

}
